import request from '@/utils/request'
import qs from 'qs'
// 查询登录日志列表
export function list(data) {
  return request({
    url: '/monitor/logininfor/list',
    headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
    method: 'post',
    params: data
  })
}

// 删除登录日志
export function delLogininfor(infoIds) {
  return request({
    url: '/monitor/logininfor/' + infoIds,
    headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
    method: 'post'
  })
}

// 清空登录日志
export function cleanLogininfor() {
  return request({
    url: '/monitor/logininfor/clean',
    method: 'post'
  })
}

// 导出登录日志
export function exportLogininfor(data) {
  return request({
    url: '/monitor/logininfor/export',
    responseType: 'blob',
    headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
    method: 'post',
    params: data
  })
}